/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg23designpatterns.za.ac.cput.selectedPatterns;

/**
 *
 * @author Oceanwave
 */
interface Display
{
    public void load(String filename);
    public void formatConsistency();
}

class CSVFile implements Display
{

    @Override
    public void load(String textfile) {
        System.out.println("Load from a textfile.");
    }

    @Override
    public void formatConsistency() {
        System.out.println("txt file format changed");
    }
    
}

class XMLFile implements Display
{

    @Override
    public void load(String xmlFile) 
    {
        System.out.println("Load from an XML file");
    }

    @Override
    public void formatConsistency() 
    {
        System.out.println("XML file format changed");
    }
    
}

class DBFile implements Display
{

    @Override
    public void load(String dbfile) {
        System.out.println("Load from a DB file");
    }

    @Override
    public void formatConsistency() {
        System.out.println("db file format changed");
    }
    
}